package com.fowo.api.model.tmp.fba.shipment.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** Fba货件子表临时表 导入导出辅助模型 */
@Getter
@Setter
public class TmpFbaShipmentProductExcelPo {

  @Size(max = 50, message = "名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "名称")
  private String name;

  @Size(max = 50, message = "货件编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "货件编号")
  private String shipmentId;

  @Size(max = 50, message = "卖家sku长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "卖家sku")
  private String sellerSku;

  @Size(max = 50, message = "亚马逊配送网络sku长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "亚马逊配送网络sku")
  private String fulfillmentNetworkSku;

  @Size(max = 50, message = "申请数量长度不能超过20")
  @ExcelProperty(value = "申请数量")
  private Integer quantityShipped;

  @Size(max = 50, message = "接收数量长度不能超过20")
  @ExcelProperty(value = "接收数量")
  private Integer quantityReceived;

  @ExcelProperty(value = "每箱数量")
  private Integer quantityInCase;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "发布日期")
  private java.util.Date releaseDate;

  @Size(max = 50, message = "准备说明长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "准备说明")
  private String prepInstruction;

  @Size(max = 50, message = "准备所有者长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "准备所有者")
  private String prepOwner;

  @ExcelProperty(value = "所属FBA货件")
  private Long parentFbaShipment;
}
